<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>

<h1><?php echo lang('start_conversation'); ?></h1>
<form id="form-start-conversation"  method="post">
    <div id="sconversation_div">
        <div class="sconversation_column">
            <label><?= lang('from') ?>:</label></br>
            <select name="conversation[from_id]" id="start_conversation_from"  class="text ui-widget-content ui-corner-all" size="<?php echo count($fake_users) > 1 ? count($fake_users) : 2; ?>">

                <?php
                foreach ($fake_users as $row) {

                    echo "<option value='{$row->id}'>{$row->username}</option>";
                }
                ?>
            </select>
        </div>
        <div class="sconversation_column">
            <label><?= lang('to') ?>:</label></br>
            <select name="conversation[to_id]" id="start_conversation_to"  class="text ui-widget-content ui-corner-all" size="<?php echo count($users); ?>">

<?php
foreach ($users as $row) {
    echo "<option value='{$row->id}'>{$row->username}</option>";
}
?>
            </select>
        </div>
        <div class="sconversation_column">
            <label><?= lang('message') ?>:</label>
            <textarea name="conversation[message]" id="conversation_message" class="text txtarea ui-widget-content ui-corner-all" ></textarea>     
            <br/>
            <label> &nbsp; </label>
            <input type='button' name="sconversation_btn" id="sconversation_btn" onclick="submit_conversation();" value="<?= lang('term_send') ?>" class='right ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all'/>
        </div>
    </div>
</form>
